package com.example.teesystem.entity.vo.paperFeedback;

import com.example.teesystem.common.valid.ValidErrorMessage;
import com.example.teesystem.common.valid.ValidId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotNull;

/**
 * @author pxr
 * @data 2022/4/27 20:00
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PaperFeedbackInsertVo {
    @NotNull(message = "paperId值不能为空")
    private Integer paperId;
    @NotNull(message = "message值不能为空")
    private String message;
    @NotNull(message = "courseId值不能为空")
    @ValidId(message = ValidErrorMessage.COURSE_ID_VALID_FAIL, ifCourseId = true)
    private Integer courseId;

    private MultipartFile[] files;

    public PaperFeedbackInsertVo (Integer paperId, String message, Integer courseId){
        this.paperId = paperId;
        this.message = message;
        this.courseId = courseId;
    }
}
